<?php
namespace App\Http\Controllers\home;

use App\Http\Controllers\Controller;
use Illuminate\Http\Request;

class UserController extends Controller{

    public function index(){
        $data = array(
            'name'=>'Leequik',
            'job'=>'PHP'
            );
        return view('home.index',$data);
    }

    //用户登陆
    public function login(Request $request){

        return view('index');
    }

    //用户退出
    public function logout(){
        
        //注销session

        return view('home.login');

    }

}